﻿<%@ WebHandler Language="C#" Class="PageCache.XStatus" %>

using System;
using System.Web;

namespace PageCache
{

    public class XStatus : IHttpHandler
    {

        HttpRequest Request;
        HttpResponse Response;
        
        public void ProcessRequest(HttpContext context)
        {
            this.Request = context.Request;
            this.Response = context.Response;

            Response.Headers.Set("Cache-Control", "no-store");

            Response.Cache.SetNoStore();
                        
            Response.ContentType = "text/plain";
            
            Response.Write("\r\n[LastDataList]");
            Response.Write("\r\npagecache_last_datalist_prevdate:");
            Response.Write(context.Cache["pagecache_last_datalist_prevdate"]);

            Response.Write("\r\npagecache_last_datalist_doing:");
            Response.Write(context.Cache["pagecache_last_datalist_doing"]);




            Response.Write("\r\n[StoreDataList]");
            Response.Write("\r\npagecache_store_datalist_prevdate:");
            Response.Write(context.Cache["pagecache_store_datalist_prevdate"]);

            Response.Write("\r\npagecache_store_datalist_doing:");
            Response.Write(context.Cache["pagecache_store_datalist_doing"]);


            Response.Write("\r\npagecache_store_datalist_clear_prevdate:");
            Response.Write(context.Cache["pagecache_store_datalist_clear_prevdate"]);

            Response.Write("\r\npagecache_store_datalist_clearing:");
            Response.Write(context.Cache["pagecache_store_datalist_clearing"]);
            
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }

    }

}